<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@include file="/WEB-INF/views/common/head.jsp"%>
<title>CartPlace管理</title>
</head>
<body>
	<s:form id="domainForm" action="cartPlace">
		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try {
						ace.settings.check('breadcrumbs', 'fixed')
					} catch (e) {
					}
				</script>

				<ul class="breadcrumb">
					<li><i class="icon-home home-icon"></i> <a href="/main.action">主页</a>
					</li>

					<li><a href="#">组织机构模块</a></li>
					<li class="active">CartPlace &amp 管理</li>
				</ul>
			</div>

			<div class="page-content">
				<div class="page-header">
					<%-- 名称：
					<s:textfield name="baseQuery.name" cssClass="nav-search-input" />
					
					<a class="btn btn-purple btn-sm" href="#" onclick="go(1);">搜索 </a> --%>
					<a href="/cartPlace_input.action" class="btn btn-purple btn-sm">添加</a> 
						
						<div>
							<div class="row">
								<div class="col-xs-12">
									<div class="row">
										<div class="col-xs-12">
											<div class="table-responsive">
												<table id="sample-table-1"
													class="table table-striped table-bordered table-hover">
													<thead>
														<tr>
															<th class="center"><label> 
																<input type="checkbox" class="ace" /> 
																<span class="lbl"></span>
															</label></th>
															<th>地点</th>
															<th>所属局点</th>
															<th>供应商</th>
															<th>添加时间</th>
															<th>商铺类型</th>
															<th>操作</th>
														</tr>
													</thead>

													<tbody id="itemTbody">

														<s:iterator value="data">
															<tr
																<s:if test="#parameters['id'][0]==iPlaceId">style='color:red'</s:if>>
																<td class="center">
																	<label> <input
																		type="checkbox" class="ace" /> <span class="lbl"></span>
																	</label>
																</td>

																<td>${sName}</td>
																<td>${scompany}</td>
																<td>${supplierName}</td>
																<td>${dtInsert}</td>
																<td>${typeName}</td>
																
																<td>

																	<div
																		class="visible-md visible-lg hidden-sm hidden-xs btn-group">

																		<button type="button"
																			<%--onclick="javascript:location.href='/cartPlace_input.action?id=${id}'" --%>
																			onclick="updateDomain('/cartPlace_input.action?id=${iPlaceId}')"
																			class="btn btn-xs btn-info">
																			<i class="icon-edit bigger-120"></i>
																		</button>

																		<button type="button"
																			<%-- onclick="javascript:location.href='/cartPlace_delete.action?id=${id}'"--%>
																		  onclick="deleteDomain('/cartPlace_delete.action?id=${iPlaceId}',this)"
																			title="回收站" class="btn btn-xs btn-danger">
																			<i class="icon-trash bigger-120"></i>
																		</button>

																	</div>
																</td>
															</tr>
														</s:iterator>
													</tbody>
												</table>
											</div>
											<!-- /.table-responsive -->
										</div>
										<!-- /span -->
									</div>
									<!-- /row -->

									<%@include file="/WEB-INF/views/common/page.jsp"%>

									<div class="hr hr-18 dotted hr-double"></div>
								</div>
							</div>

						</div> 
				</div>
			</div>
	</s:form>
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel" style="color: red">错误提示</h4>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</body>
</html>